package com.poobo.dao;

import java.io.File;
import java.util.List;

import com.poobo.util.pager.Page;
import com.poobo.entity.TbEquipment;

public interface IEquipmentDao {
	/**
	 * 根据Id查询设备
	 */
	public TbEquipment queryEquipmentById(Integer id);
	/**
	 * 查询设备列表
	 */
	public Page queryEquipmentPage(TbEquipment equipment,Page page);
	/**
	 * 根据设备Id删除设备
	 * @param id
	 */
	public void deleteEquipmentById(Integer id);
	/**
	 * 保存设备
	 * @param equipment
	 */
	public void saveEquipment( TbEquipment equipment );
	/**
	 * 导入设备Excel
	 * @param file
	 */
	public void saveEquipmentExcel(List<TbEquipment> equipments, File file );
	/**
	 * 查询所有
	 */
	public List<TbEquipment> queryAll();
	/**
	 * 查询已启用且尚未配置的设备
	 */
	public List<TbEquipment> querySome();
	/**
	 * 根据设备编号查询设备
	 * @param id
	 * @return TbEquipment
	 */
	public TbEquipment queryEquipmentByNumber(String number);
	public TbEquipment queryEquipmentByNumber2(String number);
	/**
	 * 查询尚未配置默认游戏的设备
	 * @return
	 */
	public List<TbEquipment> queryNotConfigGameEqupments();
}
